linux: fix condition for entering tickless state
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Fri, 9 Mar 2007 18:30:52 +0000 (18:30 +0000)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Fri, 9 Mar 2007 18:30:52 +0000 (18:30 +0000)
commitbde87bfe0eccc198a6fa6bc54ccbe37718a93182
treeb3394c55b9d0b0c5c6a595aed2024b724145ae1c
parenteb1a565927c0fdcd89be41f6d063c458539cca8d
linux: fix condition for entering tickless state

I noticed that timer interrupts were running at full rate regardless
of whether the system was idle.
softlockup_get_next_event() must return the maximum of zero and the
delta to the next event, not the minimum (which is always zero or
negative, yielding zero or a very large positive number as return
value).

Signed-off-by: Jan Beulich <jbeulich@novell.com>
patches/linux-2.6.18/softlockup-no-idle-hz.patch